/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package business;

import java.security.Principal;
import javax.ejb.Stateless;
import javax.inject.Inject;
import javax.inject.Named;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author Emergenza
 */
@Named
@Stateless
public class EventService {

    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
    String nome;
    

    public EventService() {
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }
    
    public void rispsta() throws Exception{
        System.out.println("risposta chiamata");
        throw new Exception();
        //e = new Event(nome);
        //em.persist(u);
       //System.out.println( e.toString());
    }

    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")

    public EventService(String nome) {
        this.nome = nome;
    }
}
